#ifndef __COMMON_H__
#define __COMMON_H__
#include <freertos/FreeRTOS.h>
#include<freertos/task.h>
#include"esp_log.h"
#include<freertos/queue.h>
static char *FILE_PATH = "/spiffs/downloaded_file.bin";

static const char *SPIFF_TAG = "SPIFF_TAG";

static const char* COMMON_TAG="COMMON_TAG";

 #define FILE_WRITE_BUFFER_SIZE 1024

static const char *TAG = "HTTP_DOWNLOAD";

static const char *DOWNLOAD_URL = "http://sensor.bodyta.com/file/411APP.bin"; // 替换为实际下载URL

extern int s_retry_num;


extern QueueHandle_t serialMessageQueue;

typedef struct{
    int16_t command;
    char data[50];
}MQTT_MESSAGE;
 void print_all_tasks_info();
 void print_heap_info(const char* tag);


void initSerialPortQueue();

 

#endif